feat(03): deploylog manual export - #8
Open
marko-builds wants to merge 1 commit into
Open
Conversation
…nswer `deploylog manual export [--project <slug>] [--out <path>]` calls GET /api/cli/manual/export and writes the whole manual (every version with its commit map, every chapter with its claims) as JSON. - src/manual-schema.ts mirrors ManualExportResponseSchema + ClaimSchema (and everything they embed) verbatim from deploylog src/lib/schemas.ts @ 946dead; the payload is validated against it before anything is written. - `--out -` streams the payload to stdout with nothing else on stdout; default is ./<slug>-manual.json. Project resolves flag > .deploylog.yml. - 404 exits non-zero naming the slug; 401 keeps the existing login nudge; a schema failure names the first failing path and writes nothing. - No plan gate anywhere (pinned by a source grep in the test). - Adds zod ^4 (the server's major) as a runtime dependency for the mirror. Tests 101 -> 115. No version bump, no publish. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
marko-builds
added a commit
that referenced
this pull request
Aug 22, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes
issues/03-manual-export.md(the CLI half of deploylog #86 / issue 57).deploylog manual export [--project <slug>] [--out <path>]callsGET /api/cli/manual/export?project=<slug>and writes the whole manual as JSON. The payload is validated against the server's published schema before anything is written.Mirrored schema:
src/manual-schema.tscopiesManualExportResponseSchema,ClaimSchema,ChapterSchema,CommitMapSchemaand everything they embed verbatim fromdeploylog src/lib/schemas.ts @ 946dead(identical bytes to thee4c4637the issue names; onlyroute.tschanged between those shas). This addszod ^4(the server's major) as a runtime dependency.Acceptance criteria
deploylog manual export --project x --out f.jsonwrites the validated payload; control: a fixture with a claim'sexpectremoved exits non-zero and writes nothing (src/manual.test.ts, namesversions.0.chapters.0.claims.0.expect)--out -streams to stdout, nothing else on stdout (errors/exit on stderr)manual.ts+manual-schema.tsforplan/can(vitest run(115, was 101),tsc --noEmit,npm run buildall passLive check (read-only, against prod)
The route is already deployed:
manual export --project deploylog --out -returned 1 version / 1 chapter / 26 claims and passed the mirrored schema unchanged; an unknown slug returns the 404 with the slug; a project without a manual returns the "has no manual to export" 404. No shape drift observed.Not done (by design)
🤖 Generated with Claude Code
Co-Authored-By: Claude Fable 5 noreply@anthropic.com